<%--
  Created by IntelliJ IDEA.
  User: TT
  Date: 2020/10/16
  Time: 17:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
    <link rel="stylesheet" href="css/index2.css">
    <script type="text/javascript">
        $(function () {
            $.post("huixian",function (number) {
                for (var i in number){
                    $("#f").append("<input type='checkbox' name='fl' value='"+number[i].cid+"'>"+number[i].cname);
                }
            },"json");
        })
    </script>
</head>
<body>
<form  action="add" method="post">
    电影名称:<input type="text" name="sname"><br>
    电影介绍:<input type="text" name="sinfo"><br>
    导演名称:<input type="text" name="daoyan"><br>
    发布时间:<input type="date" name="starttime"><br>
    电影分类:<div id="f"></div><br>
    <input type="submit" value="提交">
</form>
</body>
</html>
